package com.hspedu.homework_;

import java.util.Scanner;

public enum Color implements IA{
    RED(255,0,0),
    BLUE(0,0,255),
    BLACK(0,0,0),
    YELLOW(255,255,0),
    GREEN(0,255,0)
    ;
    private int redValue;
    private int greenValue;
    private int blueValue;

    Color(int redValue, int greenValue, int blueValue) {
        this.redValue = redValue;
        this.greenValue = greenValue;
        this.blueValue = blueValue;
    }

    public void show() {
        System.out.println("(" + redValue + "," + greenValue + "," + blueValue + ")");
    }
}

class TestColor{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String key = scanner.next();
        try {
            switch (key){
                case "red":
                    Color.RED.show();
                    break;
                case "blue":
                    Color.BLUE.show();
                    break;
                case "black":
                    Color.BLACK.show();
                    break;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}